package practise.alogrithm.introductionToAlogrithm;

/**
 * Created by Richard on 7/20/2014.
 */
public class ListNode<T> {
    ListNode next;
    T value;

    public ListNode() {
    }

    public ListNode(ListNode next, T value) {
        this.next = next;
        this.value = value;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }
}
